package uba.ing2.subite.domain;

import java.io.Serializable;

public abstract class AbstractPaymentCard implements PaymentCard {
	private Serializable identifier;
	private Number moneyAvailable;

	public AbstractPaymentCard(Serializable identifier, Number moneyAvailable) {
		this.identifier = identifier;
		this.moneyAvailable = moneyAvailable;
	}

	@Override
	public Number moneyAvailable() {
		return moneyAvailable;
	}

	@Override
	public Serializable identifier() {
		return identifier;
	}

	@Override
	public void updateMoneyAvailable(Number moneyAvailable) {
		this.moneyAvailable = moneyAvailable;
	}
}
